package Thread;

/**
 * Created with IntelliJ IDEA.
 * Description:多线程实现使用方法三：匿名类继承Thread重写run方法
 */
public class ThreadDemo3 {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                System.out.println("hello");
            }
        };
        thread.start();
    }
}
